var exec = require('child_process').exec;
var fs = require('fs');

module.exports = {
    async startCmd(command) {
        return new Promise((resolve, reject) => {
            exec(command, function (err, stdout, stderr) {
                resolve(stdout);
                if (err || stderr) {
                    console.log({ err, stderr });
                }
            });
        });
    }
}